package problem2;


import java.util.Calendar;
import java.util.Date;

public class Test {
    public static void main(String[] args) {
        Date date = new Date();
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        System.out.println(calendar.get(Calendar.YEAR)
                + "-" + (calendar.get(Calendar.MONTH) + 1)
                + "-" + calendar.get(Calendar.DAY_OF_MONTH));
//        Calendar cal = Calendar.getInstance();
//        cal.set(2023,4,11);
//        Date d = cal.getTime();
//        TV tv = new TV("TCL", d);
//        System.out.println(tv.toString());
    }
}
